#ifndef _PRINTER_H_

#ifndef _PRINTER_C_
#define FUN_EXTERN extern
#else
#define FUN_EXTERN
#endif

//开启打印机
FUN_EXTERN int open_serial(char* dev_name);

//关闭打印机
FUN_EXTERN int close_dev(int fd);

//查询打印机状态
FUN_EXTERN int printer_read(int fd);

//打印文字
FUN_EXTERN int printData(int fd,const char *str,int maxlen);

#endif